package main

import (
	"fmt"
	"github.com/robfig/cron/v3"
	"time"
)

type job struct {
	a string
	b string
	c int
}

func (mj job) xuxu() {
	fmt.Println("xuuxux")
}

func (mj job) Run() {
	fmt.Println(mj.a)
	fmt.Println(mj.b)
	fmt.Println(mj.c)
	mj.xuxu()
}

func main() {
	myjob := job{
		a: "123",
		b: "456",
		c: 789,
	}

	c := cron.New()
	c.AddJob("@every 1s", myjob)
	c.Start()

	time.Sleep(5 * time.Second)

	arrs := []any{}
	var arrs2 []any
	var arrs3 []any

	arrs2 = append(arrs2, arrs, "test")
	arrs3 = append(arrs3, arrs...)

	fmt.Println(arrs2)
	fmt.Println(arrs3)
}
